package app.sevenc.lib_framework.mvvm.m

import androidx.lifecycle.ViewModel

/**
 * [LiveData奇思妙用总结](https://juejin.cn/post/6996862698000498725)
 *
 * 共享数据
 * Activity中
 * private val mViewModel by viewModels<BaseFrameModel>()
 *
 * Fragment中
 * private val mViewModel by activityViewModels<BaseFrameModel>()
 *
 * 自定义View中
 * fun setHost(activity: BaseActivity) {
 *     var viewModel = ViewModelProvider(activity).get(BaseFrameModel::class.java)
 * }
 *
*
 * @author Seven-C
 * @date 2021/8/18
 */
open class BaseFrameModel : ViewModel() {
}